package com.situ.root.goodsA.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.situ.root.goodsA.mapper.GoodsAMapper;
import com.situ.root.goodsA.model.GoodsAModel;
import com.situ.root.goodsA.service.IGoodsAService;

@Service
public class GoodsAServiceImpl implements IGoodsAService{

	@Autowired
	private GoodsAMapper goodsAMapper;
	
	@Override
	public int insert(GoodsAModel model) {
		
		return goodsAMapper.insert(model);
	}
	
	@Override
	public List<GoodsAModel> selectList(GoodsAModel model){
		return goodsAMapper.selectAll(model);
	}
	
	//二级列表的第一级查询
	@Override
	public List<GoodsAModel> selectTest(GoodsAModel model){
		return goodsAMapper.selectTest(model);
	}
	
	@Override
	public int delete(Object id) {
		return goodsAMapper.delete(id);
	}
	
	@Override
	public int update(GoodsAModel model) {
		return goodsAMapper.update(model);
	}
	
	@Override
	public Integer selectCount(GoodsAModel model) {
		return goodsAMapper.selectCount(model);
	}
}
